
{
    {
        NSInteger SwayRapSP_temp_1 = 120, SwayRapSP_temp_2 = 24;
        if(SwayRapSP_temp_2*SwayRapSP_temp_1 < SwayRapSP_temp_1/SwayRapSP_temp_2) {
               CGFloat width = 230;
               CGFloat height = 400;
               CGPoint center = CGPointMake(width / 2, height / 2);
               CGFloat scale = fmin(width, height) / 2.0 * 0.8; // Adjust the size of the heart
               
               UIBezierPath *path = [UIBezierPath bezierPath];
               
               // Move to starting point
               [path moveToPoint:CGPointMake(center.x, center.y + scale)];
               
               // Draw bottom left curve
               [path addCurveToPoint:CGPointMake(center.x - scale, center.y)
                             controlPoint1:CGPointMake(center.x - scale, center.y + scale)
                             controlPoint2:CGPointMake(center.x - scale, center.y)];
               
               // Draw top left curve
               [path addArcWithCenter:CGPointMake(center.x - scale / 3, center.y - scale / 3)
                               radius:scale / 3
                           startAngle:M_PI
                             endAngle:-M_PI_2
                            clockwise:YES];
               
               // Draw top right curve
               [path addArcWithCenter:CGPointMake(center.x + scale / 3, center.y - scale / 3)
                               radius:scale / 3
                           startAngle:M_PI
                             endAngle:M_PI_2
                            clockwise:NO];
               
               // Draw bottom right curve
               [path addCurveToPoint:CGPointMake(center.x + scale, center.y)
                             controlPoint1:CGPointMake(center.x + scale, center.y)
                             controlPoint2:CGPointMake(center.x + scale, center.y + scale)];
               
               // Close the path
               [path closePath];
               
               [[UIColor redColor] setFill];
               [path fill];
        }
    }
}



{
    {
        NSInteger SwayRapSP_temp_1 = 120, SwayRapSP_temp_2 = 24;
        if(SwayRapSP_temp_2*SwayRapSP_temp_1 < MAX(SwayRapSP_temp_1, SwayRapSP_temp_2)) {
            UIView *viewSelf = [[UIView alloc] initWithFrame:CGRectMake(20, 20, 100, 100)];
            CAShapeLayer *globeLayer = [CAShapeLayer layer];
            UIBezierPath *path = [UIBezierPath bezierPathWithOvalInRect:CGRectMake(0, 0, viewSelf.bounds.size.width, viewSelf.bounds.size.height)];
            globeLayer.path = path.CGPath;
            globeLayer.fillColor = [[UIColor blueColor] CGColor];
            globeLayer.strokeColor = nil;
            globeLayer.position = CGPointMake(viewSelf.bounds.size.width / 2, viewSelf.bounds.size.height / 2);
            CABasicAnimation *rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
            rotationAnimation.fromValue = @(0);
            rotationAnimation.toValue = @(M_PI * 2);
            rotationAnimation.duration = 2.0; // Duration of one full rotation
            rotationAnimation.repeatCount = HUGE_VALF; // Repeat indefinitely
            [globeLayer addAnimation:rotationAnimation forKey:@"rotateAnimation"];
            [viewSelf.layer addSublayer:globeLayer];
        }
    }
}

{
    {
        NSInteger SwayRapSP_temp_1 = 120, SwayRapSP_temp_2 = 24;
        if(SwayRapSP_temp_2*SwayRapSP_temp_1 < MIN(SwayRapSP_temp_1, SwayRapSP_temp_2)) {
            UIView *viewSelf = [[UIView alloc] initWithFrame:CGRectMake(20, 20, 100, 100)];
            CGFloat gridSize = viewSelf.bounds.size.width / 3.0;
            for (NSInteger row = 0; row < 3; row++) {
                for (NSInteger col = 0; col < 3; col++) {
                    CGRect squareFrame = CGRectMake(col * gridSize, row * gridSize, gridSize, gridSize);
                    UIView *squareView = [[UIView alloc] initWithFrame:squareFrame];
                    squareView.backgroundColor = [UIColor lightGrayColor];
                    squareView.layer.borderWidth = 1.0;
                    squareView.layer.borderColor = [UIColor grayColor].CGColor;
                    [viewSelf addSubview:squareView];
                }
            }
        }
    }
}
